package com.ys.web.ws.send.mapper;

import com.ys.base.BaseMapper;
import com.ys.web.ws.send.po.SChatPO;
import com.ys.web.ws.send.vo.QueryHistoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ 名称:
 * @ 创建人: dhf
 * @ 参数： null
 * @ 创建时间: 2022/5/11
 * @ 修改人和其它信息
 * @ 返回值:
 */
@Mapper
public interface SChatMapper extends BaseMapper<SChatPO> {

    /**
     * @title batchUpdateIsRead
     * @description 批量修改当前用户未读消息为已读
     * @author dhf
     */
    int batchUpdateIsRead(@Param("uid") Long uid,@Param("suffix") Long suffix);

    List<SChatPO> queryHistorySingleChat(@Param("uid") Long uid,
                                         @Param("param") QueryHistoryVo queryHistoryVo,
                                         @Param("userSuffix") long userSuffix,
                                         @Param("friendSuffix") long friendSuffix);
}
